from flask import Flask


app = Flask(__name__)


@app.route('/hello')
def hello():
    return 'hello world'


@app.route('/user/')
def user():
    return 'userinfo'


@app.route('/str/<a>/<b>')
def f1(a, b):
    return a + b


@app.route('/int/<int:a>/<int:b>')
def f2(a, b):
    return str(a + b)


if __name__ == '__main__':
    app.run(port=5001)
